package com.hyzh.latte.vehicle.nezha;

import lombok.*;

/**
 * @author songkui
 * @since 2024/3/19 15:56
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@EqualsAndHashCode(of = {"parkCode", "poleCode", "lab"})
public class PoleVertex {

    private String poleCode;
    private String poleName;
    private String parkCode;  // 所属园区
    private String lab;

//    private String lon; //经度
//    private String lat;//维度
//    private String height; //高度

    private boolean fork;  //true 岔路， false 表示非岔路


    public boolean equalsPole(PoleVertex o) {
        if (null == o) {
            return false;
        }
        return parkCode.equals(o.getParkCode()) && poleCode.equals(o.getPoleCode());
    }


}
